package com.zhiyou.service.SystemRoleService.Impl;

import com.zhiyou.bean.Role;
import com.zhiyou.dao.RoleMapper;
import com.zhiyou.service.SystemRoleService.SystemRoleService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class SystemRoleServiceImpl implements SystemRoleService {
    @Autowired
    RoleMapper roleMapper;


    @Override
    public ArrayList<Role> selectAllRole() {
       ArrayList<Role> rolelist = (ArrayList<Role>) roleMapper.selectAll();
       return rolelist;
    }
}
